// Using jQuery with Other Libraries
try {
jQuery.noConflict();

// Blogger extensions Options
var BloggerExtOptions = {
    core_version: '0.5.7b'
};

var BloggerExt = {};
jQuery.extend( BloggerExt, {
        extensions: [],

        register: function(flag, opts) {
            BloggerExt.extensions.push(flag);
            if(opts) { jQuery.extend(BloggerExtOptions, opts); }
        },

        process: function() {
            jQuery(document).ready( function(){
                var flag;
                while( flag = BloggerExt.extensions.pop() ) {
                    if(BloggerExtOptions[flag]) { try { BloggerExt[flag](); }catch(e){} }
                }
            });
        },

        registerAndProcess: function(flag, opts) {
            BloggerExt.register(flag,opts);
            BloggerExt.process();
        },

        isListMode: function() {
            // Suppose the url include index.html or /
            return ( document.location.href.split('/').pop() == "" || document.location.href.split('/').pop() == "index.html");
        },

        isItemMode: function() {
            return !( document.location.href.split('/').pop() == "" || document.location.href.split('/').pop() == "index.html");
        }
});

// Register hide_navbar
BloggerExt.hide_navbar = function() {
    jQuery('#navbar').hide();
};
BloggerExt.register('hide_navbar', { hide_navbar: true} );


// Register hide_sidebar_html_markup
BloggerExt.hide_sidebar_html_markup = function() {
    jQuery('.HTML').each( function(i) {
            jQuery('.title', this).contains('##HIDEME##').each( function(){ jQuery(this).hide(); } );
    });
};
BloggerExt.register('hide_sidebar_html_markup', { hide_sidebar_html_markup: true} );


// Run All Register Process
BloggerExt.process();
}catch (e) { }

